project_path=/root/CLionProjects/capture

#cd $project_path/third_party
#tar -xvf nghttp2-1.57.0.tar.gz
#cd nghttp2-1.57.0
#make clean
#./configure
#make
#cmake .

#glib
#cd $project_path/third_party
#tar -xvf ninja.tar.gz
#(cd ninja; git checkout release; python3 configure.py --bootstrap)
#cd $project_path/third_party
#pip3 install meson
#tar -xvf glib-2.72.4.tar.xz
#cd glib-2.72.4
#export PATH=$project_path/third_party/ninja:$PATH
#/usr/local/bin/meson _build -Ddefault_library=static -Dselinux=disabled -Dxattr=false -Dlibmount=disabled
#ninja -C _build install

##libpcap
#cd $project_path/third_party
#tar -xvf libpcap-1.10.4.tar.gz
#cd libpcap-1.10.4
#./configure --disable-rdma --disable-dbus --disable-usb --disable-bluetooth --with-snf=no
#make
##yara
#cd $project_path/third_party
#tar -xvf yara-4.2.3.tar.gz
#cd yara-4.2.3
#./bootstrap.sh
#./configure --enable-static
#make

#daq
#cd $project_path/third_party
#tar -xvf daq-2.0.7.tar.gz
#cd daq-2.0.7
#autoreconf -f -i
#./configure --with-libpcap-includes=$project_path/third_party/libpcap-1.10.4/ --with-libpcap-libraries=$project_path/third_party/libpcap-1.10.4/
#make && make install

##kafka
#cd $project_path/third_party
#tar -xvf librdkafka-1.5.3.tar.gz
#cd librdkafka-1.5.3
#./configure --disable-sasl --install-deps
#make && make install
##lua
#cd $project_path/third_party
#tar -xvf lua-5.3.6.tar.gz
#cd lua-5.3.6
#make MYCFLAGS=-fPIC linux
#make install
#pf ring
cd $project_path/third_party
tar -xvf PF_RING.tar.gz
cd PF_RING
make && make install